<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <style>
        body {
            width: 200px;
            padding: 10px;
        }
        
        .speed-control {
            margin: 10px 0;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
        }
        
        input[type="range"] {
            width: 100%;
        }
        
        .speed-value {
            text-align: center;
            margin-top: 5px;
        }
        
        .toggle-switch {
            margin: 15px 0;
            text-align: center;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked+.slider {
            background-color: #2196F3;
        }
        
        input:checked+.slider:before {
            transform: translateX(26px);
        }
    </style>
</head>

<body>
    <h3>滚动速度控制</h3>
    <div class="speed-control">
        <label for="speed">速度：</label>
        <input type="range" id="speed" min="1" max="100">
        <div class="speed-value">1</div>
    </div>
    <div class="toggle-switch">
        <label class="switch">
            <input type="checkbox" id="hideToggle">
            <span class="slider"></span>
        </label>
        <div>隐藏按钮</div>
    </div>
    <script src="popup.js"></script>
</body>

</html>